[v-cloak] {
  display: none;
}

.text-ell(@line: 2) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: @line;
  overflow: hidden;
  text-overflow: ellipsis;
}

html {
  background: white;
}

#main {
  background: #eee;
}

header {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 11;
  padding-left: .5rem;
  span {
    position: relative;
    background: rgba(0, 0, 0, .5);
    border-radius: 50%;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: .5rem;
    z-index: 12;
    pointer-events: auto;
  }
  .icon {
    font-size: 20px;
    color: white;
    &.collected {
      color: #f46800;
    }
  }
  .right {
    display: flex;
  }
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  min-height: 2.2rem;
  max-height: 2.2rem;
  background: white;
  z-index: 12;
  &::before {
    content: "";
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    border-top: 1px solid rgba(0, 0, 0, .2);
    transform: scaleY(.5);
    transform-origin: 0 0;
  }
  > div,
  a {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row nowrap;
    word-wrap: normal;
    white-space: nowrap;
  }
  > div {
    flex-grow: 1;
    padding: 2px 0;
    justify-content: space-around;
  }
  .avatar {
    border-radius: 50%;
    max-height: 2rem;
    min-height: 2rem;
    max-width: 2rem;
    min-width: 2rem;
    margin: 0 .1rem;
  }
  .user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex-grow: 1;
    max-width: 30vw;
  }
  .user-des {
    padding-right: .5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .user-des,
  .icon {
    font-size: 14px;
  }
  .user-auth {
    font-size: 12px;
    color: #929292;
  }
  a {
    color: white;
    padding: .7rem;
  }
  .chat {
    flex-grow: 1;
    background: #ff8e00;
  }
  .reserve {
    flex-grow: 1;
    background: #ff5100;
  }
  .icon {
    color: white;
    font-size: 1rem;
  }
  .icon-sex-0 {
    color: #f46800;
    font-size: 13px;
  }
  .icon-sex-1 {
    color: blue;
    font-size: 13px;
  }
}

.horizontal-line {
  content: '';
  display: block;
  min-width: 100%;
  min-height: 1px;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
  transform-origin: 0 0;
  transform: scaleY(.5);
  margin: 1rem 0;
}

#main {
  margin-bottom: 2.2rem;
  section {
    background: white;
    margin-bottom: .5rem;
    padding: .5rem;
  }
}

.house-title {
  .title {
    margin-bottom: 1rem;
    .text-ell(2);
    line-height: 1.5;
  }
  .price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    span {
      white-space: nowrap;
      font-size: 13px;
    }
    .left {
      color: #f46800;
    }
    .right {
      color: #929292;
    }
    .money {
      font-size: 1rem;
      font-weight: bold;
    }
    .price-bg {
      padding: 0 .2rem;
      background: #ffe5f1;
    }
  }
  .label {
    font-size: 12px;
    display: flex;
    .has {
      color: #f46800;
    }
    .icon {
      font-size: 12px;
    }
    > span {
      padding-right: .5rem;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}

.house-info {
  .row {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    &:last-of-type {
      padding-bottom: 1rem;
    }
    svg {
      margin-right: .5rem;
      font-size: 1.5rem;
    }
    > div {
      flex-grow: 1;
    }
  }
  h1,
  p {
    margin: 0;
    padding: .1rem 0;
    .text-ell(1);
  }
  h1 {
    font-size: 16px;
    color: #4c4c51;
    margin-bottom: .5rem;
  }
}

.house-comment {
  .icon-star {
    color: #ffad03;
  }
  .icon-star-no {
    color: #6d6d72;
  }
  .row {
    display: flex;
    align-items: center;
  }
  .remark-num {
    flex-grow: 1;
    font-size: 14px;
    padding-left: .5rem;
  }
  .star {
    .icon {
      font-size: 15px;
    }
  }
  .user-info {
    display: flex;
    padding: .5rem 0;
    img {
      border-radius: 50%;
      width: 2rem;
      height: 2rem;
      margin-right: .5rem;
    }
    .username {
      max-width: 70vw;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
  .user-comment {
    font-size: 14px;
    color: #4c4c51;
    .text-ell(4);
  }
}

.more {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: orangered;
  .icon {
    font-size: 13px;
    transform: translateY(-2px);
  }
}

.house-info-title {
  display: flex;
  align-items: stretch;
  .shu-xian {
    min-height: 100%;
    width: 4px;
    background: linear-gradient(to top, #ff5100, #ff8e00);
    margin-right: .5rem;
  }
  > span {
    flex-grow: 1;
  }
  .icon {
    color: orangered;
  }
}

.house-res-introduce {
  .description {
    text-indent: 2em;
    padding-top: .5rem;
    &.text-ell {
      .text-ell(4);
    }
  }
  .allow-something {
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
    &.allow-wrap {
      flex-wrap: wrap;
    }
    div {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      align-content: stretch;
      min-width: calc(100% / 6);
      max-width: calc(100% / 6);
      height: 2.5rem;
      overflow: hidden;
      text-overflow: ellipsis;
      span {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .icon {
        font-size: 1rem;
      }
      .icon,
      span {
        color: #4c4c51;
      }
    }
  }
}

.house-location {
  padding: .5rem 0;
  .b-map {
    position: relative;
    margin-bottom: 1rem;
  }
  #map {
  }
  #map-des {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, .3);
    color: white;
    font-size: 14px;
    padding: 0 .5rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .rim {
    padding: 0 .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    span {
      font-size: 14px;
    }
  }
  .rim-description {
    padding: .5rem .5rem 0 .5rem;
    text-indent: 28px;
  }
}

.text-ell {
  .text-ell(4);
}

.near-the-houses {
  padding: 0;
  .title {
    padding-bottom: .5rem;
    padding-left: .5rem;
  }
  .house-show {
    display: flex;
    position: relative;
    box-sizing: border-box;
    align-items: flex-start;
  }
  .icon-xin {
    position: absolute;
    right: .5rem;
    top: .5rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 5px;
    background: rgba(0, 0, 0, .4);
    display: flex;
    justify-content: center;
    align-items: center;
    .icon {
      color: white;
      font-size: 1rem;
    }
  }
  .house-name {
    padding: .5rem;
    font-size: 16px;
    max-width: 80vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .house-des {
    font-size: 14px;
    padding: 0 .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    span {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
  .money {
    position: absolute;
    left: 0;
    bottom: 0;
    color: white;
    background: rgba(0, 0, 0, .5);
    padding: .3rem;
  }
  .avatar {
    min-width: 2rem;
    max-width: 2rem;
    min-height: 2rem;
    max-height: 2rem;
    border-radius: 50%;
    position: absolute;
    right: 1rem;
    transform: translateY(-75%);
  }
  .mui-slider-indicator {
    bottom: auto;
    top: 2px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 11;
    .mui-indicator {
      box-shadow: none;
      background: rgba(0, 0, 0, .3);
      &.mui-active {
        background: white;
      }
    }
  }
}

.house-charging-rules {
  .rule {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    > div {
      font-size: 14px;
      margin-top: .5rem;
    }
  }
  .money {
    color: red;
  }
}

#canvas {
  margin: .5rem 0;
  .tooltip {
    display: flex;
    margin: 0 5% .5rem 5%;
  }
  .tips {
    width: calc(100% / 3);
    position: relative;
    p {
      font-size: 12px;
      color: #434343;
      text-align: center;
      margin: 0;
      position: relative;
      z-index: 2;
    }
  }
  .drawBox(@color) {
    background: @color;
    border-radius: 3px;
    &::after {
      content: '';
      position: absolute;
      display: block;
      min-width: 10px;
      max-width: 10px;
      min-height: 10px;
      max-height: 10px;
      background: @color;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
      transform: rotate(45deg) translateY(50%);
      z-index: 1;
    }
  }
  .tip1 {
    .drawBox(#d7d7d7);
    background: none;
    padding: 0 .2rem;
    p {
      background: #d7d7d7;
      &:first-of-type {
        border-radius: 3px 3px 0 0;
      }
      &:last-of-type {
        border-radius: 0 0 3px 3px;
      }
    }
  }
  .tip2 {
    .drawBox(orange);
    background: none;
    padding: 0 .2rem;
    p {
      color: white;
      background: orange;
      &:first-of-type {
        border-radius: 3px 3px 0 0;
      }
      &:last-of-type {
        border-radius: 0 0 3px 3px;
      }
    }
  }
  .tip3 {
    .drawBox(#f46800);
    background: none;
    padding: 0 .2rem;
    p {
      color: white;
      background: #f46800;
      &:first-of-type {
        border-radius: 3px 3px 0 0;
      }
      &:last-of-type {
        border-radius: 0 0 3px 3px;
      }
    }
  }
  .line-text {
    display: flex;
    p {
      font-size: 10px;
      width: 25%;
      padding: .5rem 0;
    }
    .center {
      text-align: center;
    }
  }
  .lWidth() {
    min-width: 5%;
    max-width: 5%;
  }
  .drawArc(@color: black) {
    content: '';
    position: absolute;
    bottom: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: 1px solid @color;
    background: white;
    transform: translateY(50%);
  }
  .line {
    display: flex;
    > div {
      height: 1px;
      position: relative;
    }
  }
  .l1 {
    .lWidth();
    background: black;
  }
  .l2 {
    flex-grow: 1;
    background: #434343;
    &::after {
      .drawArc();
      left: 0;
    }
  }
  .l3 {
    flex-grow: 1;
    background: orange;
    &::after {
      .drawArc(orange);
      left: 0;
    }
    &::before {
      .drawArc(orangered);
      right: 0;
    }
  }
  .l4 {
    flex-grow: 1;
    background: orangered;
    &::after {
      .drawArc(red);
      right: 0;
    }
  }
  .l5 {
    .lWidth();
    background: red;
  }
}

.house-notes-in {
  .check-in-notice {
    display: flex;
    ul {
      flex-grow: 1;
      margin-top: .7rem;
      li {
        font-size: 14px;
        margin-top: .3rem;
      }
    }
  }
  .landlord-asked {
    margin-top: .7rem;
    li {
      font-size: 14px;
      margin-top: .3rem;
      color: #434343;
    }
  }
}

a[title="到百度地图查看此区域"] {
  display: none;
}

#bigMapPopup {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, .5);
}

#bigMap {
  width: 100%;
  height: 100%;
}

#bigMapClose {
  position: absolute;
  right: .5rem;
  top: 1.5rem;
  padding: .5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, .4);
  .icon {
    color: white;
  }
}

.need-rotate90 {
  transform: rotate(90deg);
}

.need-rotate180 {
  transform: rotate(180deg);
}

.need-rotate270 {
  transform: rotate(270deg);
}

.icon.collected {
  color: orange;
}

.banner-gallery {
  max-width: 100%;
  min-width: 100%;
  max-height: 12rem;
  min-height: 12rem;
}

.mui-slider-item {
  max-width: 100%;
  min-width: 100%;
  a {
    max-width: 100%;
    min-width: 100%;
    img {
      max-width: 100%;
      min-width: 100%;
    }
  }
}

.img-bg-container {

  div {
    background-size: contain;
    background-color: #e1e1e1;
    background-repeat: no-repeat;
    background-position: center center;
  }
}

.share-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-content: flex-start;
  flex-wrap: wrap;
  position: fixed;
  height: 100vh;
  width: 100vw;
  bottom: 0;
  left: 0;
  z-index: 35;
  background: rgba(0, 0, 0, .3);

  .share-content {
    background: white;
    width: 100vw;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;

    > div {
      width: calc(100% / 3);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: .5rem 0;

      .icon {
        font-size: 2rem;
      }
      span {
        font-size: 14px;
      }
    }
  }
}